
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>太极图</title>
    <style>
        *{
            margin:0;
            padding:0;
            list-style: none;
            box-sizing:border-box;
        }
        html,body{
            width:100%;
            height:100%;
        }
        .wrap{
            position:absolute;
            top:0;
            bottom:0;
            left:0;
            right:0;
            margin:auto;
            width:250px;
            height:250px;
            border:2px solid black;
            border-radius:50%;
            overflow:hidden;
        }
        .wit{
            width:50%;
            height:100%;
            background-color:white;
        }
        .blk{
            width:50%;
            height:100%;
            background-color:black;
        }
        .bow{
            position:absolute;
            left:0;
            right:0;
            top:0;
            width:50%;
            height:50%;
            margin:auto;
            border-radius:50%;
            background-color:white;
        }
        .bob{
            position:absolute;
            left:0;
            right:0;
            bottom:0;
            width:50%;
            height:50%;
            margin:auto;
            border-radius:50%;
            background-color:black;
        }
        .bow::after{
            position:absolute;
            top:0;
            bottom:0;
            left:0;
            right:0;
            margin:auto;
            width:20%;
            height:20%;
            background-color:black;
            border-radius:50%;
            content: "";
            display:block;
        }
        .bob::after{
            position:absolute;
            top:0;
            bottom:0;
            left:0;
            right:0;
            margin:auto;
            width:20%;
            height:20%;
            background-color:white;
            border-radius:50%;
            content: "";
            display:block;
        }
    </style>
</head>
<body>
<h1>太极图</h1>
<div class="wrap">
    <div class="blk"></div>
    <div class="wit"></div>
    <div class="bow"></div>
    <div class="bob"></div>
</div>
<button onclick="sendMsg()">更新标题</button>
<script>
    let tj = document.querySelector('.wrap');
    let num = 0;
    setInterval(() =>{
        num += .3;
        tj.style.transform = `rotate(-${num}deg)`;
    }, 1);

    <!--更新标题-->
    function changeText(){
      document.querySelector('h1').innerText = '月薪12K！！！'
      return '6666666'
    }
    <!--预留接收应用的方法-->
    function sendMsg(){
       <!--//执行应用传入给网页的方法-->
        objName.objKey()
    }
</script>
</body>
</html>